package com.ruoyi.mongo.cet4.service;

import com.ruoyi.mongo.cet4.Entity4;
import com.ruoyi.mongo.cet4.EntityExpand4;
import com.ruoyi.mongo.cet4.EntityTestRecord;

import java.util.List;

public interface EntityInterface {
    void saveData(Entity4 entity);

    void saveData(Entity4 entity, Long userId);

    void saveTestData(EntityTestRecord entity, Long userId);

    void saveTestList(List<EntityTestRecord> list);

    void saveList(List<Entity4> list);

    List<Entity4> selectListByPracticeId(String practice);

    List<EntityTestRecord> selectTestListByPracticeId(String practice);

    List<EntityTestRecord> selectTestListByPracticeId(String practice, long userId);

    List<Entity4> selectListByPracticeId(String practice, long userId);

    List<EntityExpand4> selectListByType(String type, int limit);

    List<EntityExpand4> selectListByGroup(Integer group);

    List<EntityExpand4> selectListByNotGroup(Integer group);

    List<EntityExpand4> selectRandomNotGroup(Integer group);

    List<EntityExpand4> selectListByTypeRandom(String type, int limit);
}
